package urldata

import "github.com/kataras/iris/context"

func CxRetSuccess(ctx context.Context,data interface{}) {
	ctx.JSON(SendData{Code:Http_Success,Summary:"ok",Data:data })
}
func CxRetSuccessMsg(ctx context.Context,data interface{}){
	ctx.JSON(SendData{Code:Http_Success,Summary:"提示",Data:data,Sort:MSG })
}
func CxRetSuccessUrl(ctx context.Context,data interface{},url string) {
	 ctx.JSON(SendData{Code:Http_Success,Summary:"ok",Data:data,Sort:MSG ,Url:url})
}
func CxRetFail(ctx context.Context,data interface{}) {
	 ctx.JSON(SendData{Code:Http_Fail,Summary:"fail",Data:data })
}
func CxRetNeedAuth(ctx context.Context,data interface{}) {
	 ctx.JSON(SendData{Code:Http_NeedAuth,Summary:"need auth",Data:data})
}
